
    <div class="inside">
        <h1>Earn Revenue Report Form</h1>
        <?php $form = $this->beginWidget('CActiveForm'); ?>
        <div class="form">
            <div class="row">
                <?php echo $form->label($model,'startDate'); ?>
                <?php 
                    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                        'model'=>$model,
                        'attribute'=>'startDate',
                        'value'=>date('d-m-Y'),
                        'options' => array('dateFormat'=>'dd-mm-yy'),
                    )); 
                ?>  
                <?php echo $form->error($model,'startDate');?>                        
            </div>
            <div class="row">
                <?php echo $form->label($model,'endDate'); ?>
                <?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                        'model'=>$model,
                        'attribute'=>'endDate',
                        'value'=>date('d-m-Y'),
                        'options'=> array('dateFormat'=>'dd-mm-yy')
                    ));
                ?>
                <?php echo $form->error($model,'endDate'); ?>
            </div>
            <div class="row_buttons">
                <?php echo CHtml::submitButton(); ?>
            </div>
        </div>
        <?php $this->endWidget(); ?>
    </div>

